package freedom.easyit.enums;

/**
 * @author Charlie Email:tingfangcao@163.com
 * @date 2020/10/21
 */
public enum GenderEnum {

    LADY, GENTLEMAN;

    /**
     * @param gendar
     * @return
     */
    public static GenderEnum fromString(String gendar) {
        GenderEnum g = null;
        switch (gendar) {
            case "男":
                g = GENTLEMAN;
                break;
            case "女":
                g = LADY;
                break;

            default:
                break;
        }
        return g;
    }

}
